package com.zb_study.writer_;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class BufferedWriter_ {
    public static void main(String[] args) throws IOException {
        String filePath = "e:\\ok.txt";

        BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(filePath));
        bufferedWriter.write("hello1,周波");
        bufferedWriter.newLine();
        bufferedWriter.write("hello2,周波");
        bufferedWriter.newLine();
        bufferedWriter.write("hello3,周波");
        bufferedWriter.newLine();


        bufferedWriter.close();
    }
}
